﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Css hacks</title>
    <style type="text/css">
        
        
    </style>
    <script type="text/javascript">

        var ua = navigator.userAgent.toLowerCase();
        var isStrict = document.compatMode == "CSS1Compat";  //BackCompat,CSS1Compat

        var obj = document.getElementById("obj");
        obj.attachEvent("click", function () { });

        if (window.attachEvent) {
        } else if (window.addEventListener) {
        }

        window.onload = function () {

            var height = document.compatMode == "CSS1Compat" ? document.documentElement.clientHeight : document.body.clientHeight;

            console.log(document.documentElement.clientHeight);
            console.log(document.body.clientHeight);

        };

       

    </script>
</head>
<body>

</body>
</html>
